.class Lcom/noshufou/android/su/preferences/PreferencesActivity$1;
.super Ljava/lang/Object;
.source "PreferencesActivity.java"

# interfaces
.implements Lcom/noshufou/android/su/widget/NumberPickerDialog$OnNumberSetListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/noshufou/android/su/preferences/PreferencesActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;


# direct methods
.method constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$1;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    .line 315
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onNumberSet(I)V
    .locals 7
    .parameter "number"

    .prologue
    .line 319
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$1;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mLogLimit:Landroid/preference/Preference;
    invoke-static {v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$0(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v1

    iget-object v2, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$1;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    const v3, 0x7f0b0058

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-virtual {v2, v3, v4}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 320
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$1;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    iget-object v1, v1, Lcom/noshufou/android/su/preferences/PreferencesActivity;->mPrefs:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "pref_log_entry_limit"

    invoke-interface {v1, v2, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 321
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$1;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mContext:Landroid/content/Context;
    invoke-static {v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$1(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/noshufou/android/su/service/ResultService;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 322
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "action"

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 323
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$1;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-virtual {v1, v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 324
    return-void
.end method
